home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3609 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.0 KB

  1. Path: newsfeed.internetmci.com!xmission!news
  2. From: tknarr@xmission.com  ( Todd Knarr )
  3. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  4. Subject: Re: Hungarian notation
  5. Date: 25 Jan 1996 02:06:33 GMT
  6. Organization: Chaos Central
  7. Message-ID: <4e6oj9$o02@news.xmission.com>
  8. References: <30C40F77.53B5@swsbbs.com> <4d2ok0$69s@beach.and.nl> <4dtv3gINNo9u@keats.ugrad.cs.ubc.ca> <SPENCER.96Jan22113215@zorgon.ERA.COM> <4e1nd8$hv0@solutions.solon.com> <3104bfc8.132251392@nntp.ix.netcom.com> <dewar.822407919@schonberg> <3106260f.224013120@nntp.ix.netcom.com>
  9. Reply-To: tknarr@xmission.com ( Todd Knarr )
  10. NNTP-Posting-Host: slc62.xmission.com
  11. X-Newsreader: IBM NewsReader/2 v1.2
  12.  
  13. In <3106260f.224013120@nntp.ix.netcom.com>, miker3@ix.netcom.com (Mike Rubenstein) writes:
  14. >    When a value with integral type is demoted to a signed integer
  15. >    with smaller size or an unsigned integer is converted to its 
  16. >    corresponding signed integer, if the value cannot be 
  17. >    represented the result is implementation defined.
  18. >
  19. >This requires an implementation to convert the integral type.  It does
  20. >not give it license to take actions not specified by the standard.
  21.  
  22. I think you're reading something into the standard that isn't there. The
  23. standard says the implementation must define what it will do, but the
  24. standard says nothing whatsoever about *what* definition the implementation
  25. must give. The implementation is free to define the result as always
  26. producing 0 in this case, or a random number, or causing program
  27. termination, or producing nasal demons. That this is so should be
  28. obvious, because if the standard dictated what definition the implementation
  29. would use then it would not be implementation defined, now would it?
  30.  
  31. --
  32. Todd Knarr : tknarr@xmission.com      |  finger for PGP public key
  33.                                       |  Member, USENET Cabal
  34.  
  35. Seriously, I don't want to die just yet.  I don't care how
  36. good-looking they are, I! don't! want! to! die!"
  37.                                         -- Megazone ( UF1 )
  38.  
  39.